// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
import router from "./router";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
// import axios from 'axios'
import service from "./service";
import "font-awesome/css/font-awesome.min.css";
// import echarts from 'echarts'

Vue.use(ElementUI);
Vue.config.productionTip = false;
// Vue.prototype.axios=axios//axios挂载到原型
Vue.prototype.service = service; //axios挂载到原型
// Vue.prototype.$echarts=echarts//axios挂载到原型

// 引入mock模拟数据的文件
// import "../mock/index"
// const { mockXHR } = require("../mock");
// mockXHR();

/* eslint-disable no-new */
new Vue({
  el: "#app",
  router,
  components: { App },
  template: "<App/>"
});
